home *** CD-ROM | disk | FTP | other *** search
/ Amiga Tools 5 / Amiga Tools 5.iso / tools / developer-tools / aros / source / exec / lists / makefile < prev    next >
Encoding:
Makefile  |  1996-07-16  |  1.6 KB  |  77 lines

  1. # $Id: Makefile 1.3 1995/12/17 21:52:01 digulla Exp digulla $
  2. # $Log: Makefile $
  3. # Revision 1.3  1995/12/17  21:52:01  digulla
  4. # Added PART/SUBPART
  5. #
  6. # Revision 1.2    1995/11/14  22:24:31  digulla
  7. # src/ replaced by $(SRCDIR)
  8. #
  9. # Revision 1.1    1995/11/05  22:41:12  digulla
  10. # Initial revision
  11. #
  12.  
  13. TOP_DIR     = prj:
  14. PART        = exec
  15. SUBPART     = lists
  16. CURRENT_DIR    = source/$(PART)/$(SUBPART)/
  17.  
  18. include $(TOP_DIR)MakeFlags
  19.  
  20. FUNCTIONS    =   addhead addtail enqueue findname insert remhead remove \
  21.             remtail
  22.  
  23. SRCDIR        = src/
  24. SRCS        = $(foreach f,$(FUNCTIONS),$(SRCDIR)$f.c)
  25. OBJS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.o)
  26. DEPS        = $(foreach f,$(FUNCTIONS),$(OBJDIR)/$f.d)
  27. LIB        = $(LIB_PREFIX)$(PART)_$(SUBPART)$(OPT_SUFFIX)$(LIB_SUFFIX)
  28.  
  29. SUBDIRS     = tests
  30. USR_DIST_FILES    =
  31. DEV_DIST_FILES    = Makefile RCS_Link $(SRCS) $(SRCDIR)RCS_Link \
  32.         $(USR_DIST_FILES)
  33.  
  34. INCLUDES    =   $(INCLUDE_DIR) $(TOP_DIR)$(CURRENT_DIR)include \
  35.             $(INCLUDE_DIR) $(TOP_DIR)source/exec/include \
  36.             $(INCLUDE_DIR) $(TOP_DIR)include
  37.  
  38. all :: $(LIB) all_subdirs
  39.     $(done-with-it)
  40.  
  41. all_subdirs :
  42.     @$(subst TARGET,all,$(SUBDIR_RULE))
  43.  
  44. $(LIB) : $(OBJDIR) $(OBJS)
  45.     $(AR) $(LIB) $(OBJS)
  46.  
  47. install :: $(TOP_DIR)include/exec
  48.     $(INSTALL_DATA) include/exec/nodes.h $(includedir)exec/nodes.h
  49.     $(INSTALL_DATA) include/exec/lists.h $(includedir)exec/lists.h
  50.     $(done-with-it)
  51.  
  52. $(TOP_DIR)include/exec :
  53.     -$(MKDIR) $@
  54.  
  55. clean ::
  56.     -$(RM) $(OBJS) $(LIB)
  57.     @$(subst TARGET,$@,$(SUBDIR_RULE))
  58.  
  59. check :: all
  60.     @$(subst TARGET,$@,$(SUBDIR_RULE))
  61.  
  62. dist ::
  63.     @$(subst TARGET,$@,$(SUBDIR_RULE))
  64.     @$(do-dist)
  65.  
  66. $(OBJDIR) :
  67.     -$(MKDIR) $(OBJDIR)
  68.  
  69. $(OBJDIR)/%.o : $(SRCDIR)%.c
  70.     $(run-cc)
  71.  
  72. $(OBJDIR)/%.d : $(SRCDIR)%.c
  73.     $(make-depend)
  74.  
  75. -include $(DEPS)
  76.  
  77.